package ae.pcfc.cldos.online.common.clddb.dao.provider;

import org.springframework.stereotype.Repository;

import ae.pcfc.cldos.online.common.clddb.dao.AttachmentTypeDAO;
import ae.pcfc.cldos.online.common.clddb.domain.AttachmentType;
import ae.pcfc.cldos.online.common.dao.GenericDAO;

/**
 * 
 * @author arosa
 *
 */
@Repository
public class AttachmentTypeDAOImpl extends GenericDAO implements AttachmentTypeDAO{

	/**
	 * 
	 * Get attachment type by code
	 */
	public AttachmentType getAttachmentTypeByCode(String code) {
		return (AttachmentType)findByProperty(AttachmentType.class, AttachmentType.__ATTACHMENT_TYPE_CODE, code);
	}
	
}
